//
//  CreateSceneViewController.swift
//  OnceNectar
//
//  Created by 法正磊 on 2018/2/26.
//  Copyright © 2018年 com.inwhoop. All rights reserved.
//

import UIKit

class CreateSceneViewController: BaseViewController, BottomShadow {
    @IBOutlet weak var topImageView: UIImageView!
    @IBOutlet weak var mainView: UIView!
    @IBOutlet weak var mainTextField: UITextField!
    @IBOutlet weak var doneButton: UIButton!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        setUI()
        // Do any additional setup after loading the view.
    }
    
    func setUI() {
        setShadow(view: mainView, opacity: bottomShadowOpacity, size: bottomShadowOffset, color: UIColor.black, cornerradius: CORNERRADIUS)
        titleLabel(text: "创建场景", nil)
    }
    
    override func setNavigation() {
    }
    
    @IBAction func imageViewTap(_ sender: UITapGestureRecognizer) {
        let deviceTypeImageVC = DeviceTypeImageViewController(nibName: "\(DeviceTypeImageViewController.self)", bundle: nil)
        deviceTypeImageVC.selectImage = {self.topImageView.image = $0}
        navigationController?.pushViewController(deviceTypeImageVC, animated: true)
    }
    
    @IBAction func createTap(_ sender: UIButton) {
    }
}
